package com.xx.doublex.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xx.doublex.entity.User;
import com.xx.doublex.mapper.UserMapper;
import com.xx.doublex.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author IronmanJay
 * @since 2023-12-24
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> select() {
        return userMapper.selectAll();
    }

    @Override
    public User getByUsername(String username) {
        return userMapper.getByUsername(username);
    }
}
